<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 技巧：选择器选中标签的范围越大，优先级/权重 越低 */
        div {
            color: green;
        }

        * {
            color: red ! important;
        }

        .box {
            color: blue;
        }

        #test {
            color: orange;
        }
    </style>
</head>

<body>
    <div class="box" id="test" style="color: violet;">div标签</div>
</body>

</html>